package com.gmail.bloim.serg.acmbuilder;

/**
 * User: Администратор
 * Date: 26.04.13
 * Time: 13:09
 */
public class Import {
    private final String importStr;
    private final String className;

    public Import(String importStr, String className) {
        this.importStr = importStr;
        this.className = className;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Import)) return false;

        Import anImport = (Import) o;

        if (!className.equals(anImport.className)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return className.hashCode();
    }

    public String getImportStr() {
        return importStr;
    }

    public String getClassName() {
        return className;
    }
}
